Component({
  relations: {
    '../grid/grid': {
      type: 'parent', // 关联的目标节点应为子节点
    }
  },
  properties: {
    cell: Object,
    icon: String,
    iconSize: {
      type: String,
      value: '50'
    },
    text: String,
    showBadge: Boolean,
    badgeCount: Number
  },
  data: {},
  methods: {
    handleSelect: function () {
      this.triggerEvent('select',
        { cell: this.data.cell },
        // 事件冒泡 + 穿越组件边界（进入组件中的父组件）具体查看小程序文档
        { bubbles: true, composed: true })
    }
  }
});